window.onload = function() {
	var clanList = document.getElementById('frm_list_clan');
	var accesClan = document.getElementById('frm_visibilite_restreint');
	setVisibility(clanList, accesClan);
	var CheckVisibility = function() {
		setVisibility(clanList, accesClan)
	}
	accesClan.addEventListener('change', CheckVisibility)
	document.getElementById('frm_visibilite_clan').addEventListener('change', CheckVisibility)
	document.getElementById('frm_visibilite_open').addEventListener('change', CheckVisibility)
}

function setVisibility(clanList, accesClan) {
	if (accesClan.checked == false) {
		clanList.parentElement.style.display = 'none';
	}
	else {
		clanList.parentElement.style.display = 'block';
	}
}